package com.world.cat.model.back;

import com.world.cat.enums.CategoryType;
import com.world.common.model.BaseEntity;

import javax.persistence.*;

/**
 * Created by gang on 2017/4/6.
 */
//分类
@Entity
@Table(name = "category")
public class Category extends BaseEntity {
    private String name;
    @Column(name = "parent_id")
    private String parentId;
    private String value;
    private Integer seq;
    @Column(name = "category_type")
    @Enumerated(EnumType.STRING)
    private CategoryType categoryType;

    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }

    public CategoryType getCategoryType() {
        return categoryType;
    }

    public void setCategoryType(CategoryType categoryType) {
        this.categoryType = categoryType;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
